/**
FilenameFilterFactory.java
jackysoft-basic-core
2012-8-16上午9:50:22
@author 屈甲康
@QQ285799123
mailto:qujiakang@126.com
 **/
package org.jackysoft.io;

import java.io.File;
import java.io.FilenameFilter;

public class FilenameFilterFactory {

	public static FilenameFilter createFilenameFilter(final String... post) {

		return new FilenameFilter() {

			@Override
			public boolean accept(File dir, String name) {

				for (String pot : post) {
					if (name.endsWith(pot))
						return true;
				}
				return false;
			}

		};
	}

}
